package me.send.data.service.mapper;

import java.util.List;
import java.util.Map;

import me.send.data.service.BaseMapper;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

public abstract interface OrderstatusMapper extends BaseMapper {

	/**
	 * 提供方法给其他接口使用	
	 * 
	 * 2015-6-18 17:19:11
	 */
	@Select(value = "select orderstatusid,statusname from orderstatus where orderstatusid = #{orderstatusid}")
	@Results( { @Result(column = "orderstatusid", property = "orderstatusid"),
			@Result(column = "statusname", property = "statusname") })
	public abstract Map<String, Object> map_orderstatusid(Integer orderstatusid);

	
	/**
	 * 查询所有的订单状态
	 * 
	 * 2015年6月23日16:14:40
	 */
	@Select(value="select * from orderstatus")
	public abstract List<Map<String, Object>> list_all();
	
}
